package homework;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: fanbo
 * @Date: 2021/1/25 5:26 上午
 */
public class Mapper {
    private Map<String,MappedHost> hosts = new HashMap<>();

    public Map<String, MappedHost> getHosts() {
        return hosts;
    }

    public void setHosts(Map<String, MappedHost> hosts) {
        this.hosts = hosts;
    }



    public class MappedHost {
        private Map<String,MappedContext> contexts = new HashMap<>();

        public Map<String, MappedContext> getContexts() {
            return contexts;
        }

        public void setContexts(Map<String, MappedContext> contexts) {
            this.contexts = contexts;
        }
    }

    public class MappedContext{
        public Map<String, MappedWrapper> getWrappers() {
            return wrappers;
        }

        public void setWrappers(Map<String, MappedWrapper> wrappers) {
            this.wrappers = wrappers;
        }

        private Map<String,MappedWrapper> wrappers = new HashMap<>();

    }

    public class MappedWrapper{
        public Servlet getServlet() {
            return servlet;
        }

        public void setServlet(Servlet servlet) {
            this.servlet = servlet;
        }

        private Servlet servlet;

    }
}
